package com.ling.sbbyyds.common.validator;


/**
 * 抛异常函数式接口
 * @author Administrator
 */
@FunctionalInterface
public interface ThrowExceptionFunction {
    /**
     * 调用执行函数体抛出异常
     * @param message 异常内容
     * @param exceptionType 异常类型
     * @throws Throwable 抛出异常
     */
    void throwMessage(String message, Class<? extends Throwable> exceptionType) throws Throwable;
}
